﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace UniversityPortal.Models
{
    public class RegisterModel
    {
        [Required]
        [Display(Name = "first Name")]
        public string FirstName { get; set; }

        [Required]
        [Display(Name = "last Name")]
        public string LastName { get; set; }

        [Required]
        [Display(Name = "family Name")]
        public string FamilyName { get; set; }

        [Required]
        [Display(Name = "e-mail")]
        [DataType(DataType.EmailAddress)]
        [RegularExpression(@"^[-a-z0-9!#$%&'*+/=?^_`{|}~]+(?:\.[-a-z0-9!#$%&'*+/=?^_`{|}~]+)*@(?:[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?\.)*(?:aero|arpa|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel|[a-z][a-z])$",
            ErrorMessage = "Invalid e-mail")]
        public string Email { get; set; }

    }
}